package com.alibaba.sdk.model.dao;

import com.alibaba.sdk.model.dto.UserDTO;
import com.alibaba.sdk.model.entity.User;
import com.alibaba.sdk.model.query.UserListQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户操作
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 用户列表查询
     *
     * @param page          翻页参数
     * @param userListQuery 用户列表查询参数类
     * @return
     */
    Page<UserDTO> queryUserList(Page page, @Param("query") UserListQuery userListQuery);
}